package org.demo.szml.userservice;

import lombok.extern.slf4j.Slf4j;
import org.apache.shardingsphere.shardingjdbc.spring.boot.SpringBootConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import io.seata.spring.annotation.datasource.EnableAutoDataSourceProxy;

/**
 * @description: 用户服务应用启动类
 * @date: 2025/6/12 21:53
 * @version: 1.0
 */
@Slf4j
@SpringBootApplication()
@EnableDiscoveryClient
@EnableFeignClients
public class UserServiceApplication {
    public static void main(String[] args) {
        try {
            SpringApplication.run(UserServiceApplication.class,args);
        } catch (Exception e) {
            log.error("启动失败 原因为:{}",e.getMessage());
        }
    }
}
